package com.yehaikeji.workflow.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiParam;

public class incident {
    private String incidentid;
    
    @ApiParam(value="这个是交件者的名字")
    private String sendname;
    
    @ApiParam(value="状态")
    private Integer status;
    
    @ApiParam(value="thingid必填")
    private String thingid;

    @ApiParam(value="交件人签名")
    private String signatures;

    @ApiParam(value="接件人签名")
    private String signaturea;
    
    @ApiParam(value="中转/交件时间 yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date createdate;
    
    private String createdateS;

    @ApiParam(value="接件者的名字")
    private String acceptname;
    
    @ApiParam(value="交件社区/部门")
    private String sendunit;
    
    @ApiParam(value="接件社区/部门")
    private String accepetunit;

    @ApiParam(value="交件社区/部门id")
    private String unitida;
    
    @ApiParam(value="接件社区/部门id")
    private String unitidb;
    
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedate;
    
    @ApiParam(value="账号的唯一id必填")
    private String userid;
    
    @ApiParam(value="办理时限（以工作日为单位，数据只需要整数）")
    private Integer time;
    
    @ApiParam(value="退件时理由内容(可选)")
    private String reason;
    
    @ApiParam(value="办理部门id")
    private String unitidc;
    
    @ApiParam(value="办理部门")
    private String snapinunit;

    public String getIncidentid() {
        return incidentid;
    }

    public void setIncidentid(String incidentid) {
        this.incidentid = incidentid == null ? null : incidentid.trim();
    }

    public String getSendname() {
        return sendname;
    }

    public void setSendname(String sendname) {
        this.sendname = sendname == null ? null : sendname.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getThingid() {
        return thingid;
    }

    public void setThingid(String thingid) {
        this.thingid = thingid == null ? null : thingid.trim();
    }

    public String getSignatures() {
        return signatures;
    }

    public void setSignatures(String signatures) {
        this.signatures = signatures == null ? null : signatures.trim();
    }

    public String getSignaturea() {
        return signaturea;
    }

    public void setSignaturea(String signaturea) {
        this.signaturea = signaturea == null ? null : signaturea.trim();
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getAcceptname() {
        return acceptname;
    }

    public void setAcceptname(String acceptname) {
        this.acceptname = acceptname == null ? null : acceptname.trim();
    }

    public String getSendunit() {
        return sendunit;
    }

    public void setSendunit(String sendunit) {
        this.sendunit = sendunit == null ? null : sendunit.trim();
    }

    public String getAccepetunit() {
        return accepetunit;
    }

    public void setAccepetunit(String accepetunit) {
        this.accepetunit = accepetunit == null ? null : accepetunit.trim();
    }

    public String getUnitida() {
        return unitida;
    }

    public void setUnitida(String unitida) {
        this.unitida = unitida == null ? null : unitida.trim();
    }

    public String getUnitidb() {
        return unitidb;
    }

    public void setUnitidb(String unitidb) {
        this.unitidb = unitidb == null ? null : unitidb.trim();
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public Integer getTime() {
		return time;
	}

	public void setTime(Integer time) {
		this.time = time;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getCreatedateS() {
		return createdateS;
	}

	public void setCreatedateS(String createdateS) {
		this.createdateS = createdateS;
	}

	public String getUnitidc() {
		return unitidc;
	}

	public String getSnapinunit() {
		return snapinunit;
	}

	public void setUnitidc(String unitidc) {
		this.unitidc = unitidc;
	}

	public void setSnapinunit(String snapinunit) {
		this.snapinunit = snapinunit;
	}

	@Override
	public String toString() {
		return "incident [incidentid=" + incidentid + ", sendname=" + sendname + ", status=" + status + ", thingid="
				+ thingid + ", signatures=" + signatures + ", signaturea=" + signaturea + ", createdate=" + createdate
				+ ", acceptname=" + acceptname + ", sendunit=" + sendunit + ", accepetunit=" + accepetunit
				+ ", unitida=" + unitida + ", unitidb=" + unitidb + ", updatedate=" + updatedate + ", userid=" + userid
				+ ", time=" + time + "]";
	}
    
}